const express = require('express');
const router = express.Router();
const myHander = require('../router_hander/userInfo');
const {userInfoSchema,resetPwdSchema}= require('../schema/user.js');
const expressJoi = require("@escook/express-joi")

router.post('/userInfo', myHander.getUserInfo);
router.post('/updateUserInfo',expressJoi(userInfoSchema), myHander.updateUserInfo);
router.post('/resetPassword',expressJoi(resetPwdSchema), myHander.resetPwd);
module.exports = router;